<?php
namespace app\validate;

use think\Validate;

class Admin extends Validate
{
    protected $rule = [
        'username' => 'require',
        'password' => ['require' => true, 'max' => 25, 'min' => 6],
    ];

    protected $message = [
        'username.require' => '账号必填',
        'password.require' => '密码必填',
        'password.max'     => '密码最多25位',
        'password.min'     => '密码最少6位',
    ];
}
